<?php

namespace app\api\validation;

class Surname extends \think\Validate
{
    protected $rule = [
        'name' => 'require',
        'dynasty' => 'require',
        'category_id' => 'require',
    ];

    protected $message = [
        'name.require' => '姓名不能为空',
        'dynasty.require' => '朝代不能为空',
        'category_id.require' => '分类不能为空'
    ];
}